package com.shop.controller;


import com.shop.common.result.Result;
import com.shop.common.result.util.ResultModel;
import com.shop.service.SystemParameterService;
import com.shop.vo.GetSystemParameterVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统参数表 前端控制器
 * </p>
 *
 * @author 靳 旺
 * @since 2020-12-16
 */
@RestController
@Api(tags = "系统参数前端控制器")
@RequestMapping("/system-parameter-do")
public class SystemParameterController {

    @Autowired
    private SystemParameterService systemParameterService;

    @PostMapping("getSystemParameter")
    @ApiOperation(value = "查询系统参数",notes = "靳旺")
    public ResultModel getSystemParameter(@RequestBody GetSystemParameterVo getSystemParameterVo)throws Exception{
        return systemParameterService.getSystemParameter(getSystemParameterVo);
    }


}
